package com.gmail.dmitryustimov.ms.java7.visitor.mod_actionmap.example.example2;


public class Demo {
    public static void main(String[] args) {

        System.out.println("---------- java7.visitor.mod_work ----------");

        CarElement car = new Car();
        Visitor<CarElement> doVisitor = new CarElementDoVisitor<>();
        Visitor<CarElement> printVisitor = new CarElementPrintVisitor<>();

        printVisitor.visit(car);
        doVisitor.visit(car);
    }
}
